<!DOCTYPE html>
<html xmlns:th = "http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
	 h3{
	 	text-align: center ;
	 }
	 
	 table{
	 	font-size:10px;
	 	width:300px;
	 	
	 	margin:0 auto ;
	 }
	 
</style>
</head>
<body>
	<h3>添加雇员信息</h3>
	
	<form th:action="@{/employee/add}" method = "post">
		<table>
		  <tr>
		  	   <td><input type = "hidden" name = "id" th:value = "${id}"></td>
		  </tr>
		   <tr>
		  	   <td align = "right">姓名：</td>
		  	   <td><input name = "empName"></td>
		  </tr>
		   <tr>
		  	   <td align = "right">电话：</td>
		  	   <td><input name = "phone"></td>
		  </tr>
		   <tr>
		  	   <td align = "right">地址：</td>
		  	   <td><input name = "address"></td>
		  </tr>
		   <tr>
		  	   <td align = "right">生日：</td>
		  	   <td><input name = "birthday"></td>
		  </tr>
		   <tr>
		  	   <td align = "right">部门：</td>
		  	   <td>
		  	   		<select name = "dept.deptId">
		  	   			<option th:each = "d:${depts}" th:value = "${d.deptId}" th:text = "${d.deptName}"></option>
		  	   		</select>
		  	   </td>
		  </tr>
		   <tr>
		  	   <td colspan="2" align = "center"><input type= "submit" value = "添加"></td>
		  </tr>
		  
		</table>
	</form>
</body>
</html>